import axios from '@/utils/request';

export function getHomeTab(page) {
  return axios({
    url: '/home/tab',
    methods: 'get',
    params: {
      page
    }
  })
}
export function getNumber() {
  return axios({
    url: '/home/number',
    methods: 'get',
  })
}
export function delTab(id) {
  return axios({
    url: '/home/delTab',
    methods: 'get',
    params: {
      id
    }
  })
}
export function updateTab(student) {
  student = JSON.stringify(student);
  return axios({
    url: '/home/updateTab',
    methods: 'get',
    params: {
      student
    }
  })
}
export function addTab(student) {
  student = JSON.stringify(student);
  return axios({
    url: '/home/addTab',
    methods: 'get',
    params: {
      student
    }
  })
}
export function serchTab(li) {
  return axios({
    url: '/home/serchTab',
    methods: 'get',
    params: {
      'id': li.id,
      'name': li.name,
      'create_time': li.create_time,
      'end_time': li.end_time,
      'currentPage': li.currentPage,
      "pageSize": li.pageSize
    }
  })
}
export function serchTabNum(li) {
  return axios({
    url: '/home/serchTabNum',
    methods: 'get',
    params: {
      'id': li.id,
      'name': li.name,
      'create_time': li.create_time,
      'end_time': li.end_time,
    }
  })
}
